from django.db import models

# Create your models here.
class users(models.Model):#用户注册标配
    id= models.AutoField(primary_key=True)
    username= models.CharField(max_length=100,null=False)
    password=models.CharField(max_length=100,null=False)
    email=models.CharField(max_length=20,null=False)


    def __str__(self):
        return "({id},{username},{password},{email})".format(id=self.id,username=self.username,password=self.password,email=self.email)

# class  (models.Model):#用户注册标配
#     id= models.AutoField(primary_key=True)
#     username= models.CharField(max_length=100,null=False)
#     password=models.CharField(max_length=100,null=False)
#     email=models.CharField(max_length=20,null=False)